/*
 * Copyright (c) 2018-2999 北京小象智慧信息科技有限公司 All rights reserved.
 *
 * https://www.xiaoxiangai.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.service;

import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.enums.SmsType;
import com.yami.shop.bean.model.SmsLog;

/**
 *
 * @author lgh on 2018/11/29.
 */
public interface SmsLogService extends IService<SmsLog> {

	public boolean sendSms(SmsType smsType,String mobile,Map<String,String> params);

	public String checkValidCode(String mobile, String code,SmsType smsType);

	//用户下订单的时候,短信通知商家

	public void sendSmsToShop(String shopName,String mobile,String orderNumber,String adminMobile);

	//商家审核通过,短信通知商家
	public void sendSmsAfterPassing(String mobile);

	//商家注册后,短信通知平台管理员，及时进行审核
	public void sendSmsToAmdin(String mobile);

	//找回密码发送验证码
    public boolean sendRetrievePassword(SmsType smsType,String mobile,Map<String,String> params);

	//找回密码时,通过短信发送验证码进行验证
	public String sendSmsToRetrieve(String mobile,String code,SmsType smsType);

	//验证码登陆
	public boolean loginBySendSms(String mobile);

	//验证登陆验证码是否正确
	public String checkLoginCode(String mobile, String code,SmsType smsType);

	//发送会员短信消费提醒
	public void sendSmsToMemberAfterConsumption(String mobile,String orderNumber);
}
